export default function checkEnvVariable(variableName: string) {
    const variable = process.env[variableName];
    if (!variable) {
        throw new Error(`${variableName} is not defined in environment variables`);
    }
    return variable;
}